.class public Lcom/philzhu/www/ddz/World;
.super Ljava/lang/Object;
.source "World.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/philzhu/www/ddz/World$Status;
    }
.end annotation


# static fields
.field private static final RNG:Ljava/util/Random; = null

.field static final TICK_INITIAL:F = 0.1f

.field static tick:F


# instance fields
.field private allCards:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;"
        }
    .end annotation
.end field

.field public alpha:I

.field public antiSpring:Z

.field public bottomCards:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;"
        }
    .end annotation
.end field

.field public currentPlayer:Lcom/philzhu/www/ddz/Player;

.field public dizhuIndex:I

.field public firstOne:Z

.field private foldPlayersCount:I

.field public grade:I

.field public isKeeperDown:Z

.field public isKeeperUp:Z

.field public isSettingDizhu:Z

.field public keeperOffset:I

.field nextPlayerDelay:F

.field public noBiggerCard:Z

.field public noOneCalls:Z

.field public oldStatus:Lcom/philzhu/www/ddz/World$Status;

.field private oldTipsNoFollowedCards:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public pickedNoCard:Z

.field public pickedTheWrongCards:Z

.field public playerD:Lcom/philzhu/www/ddz/Player;

.field public playerM:Lcom/philzhu/www/ddz/Player;

.field public playerU:Lcom/philzhu/www/ddz/Player;

.field public spring:Z

.field public status:Lcom/philzhu/www/ddz/World$Status;

.field tickTime:F

.field private tipInfo:Lcom/philzhu/www/ddz/TipsInfo;

.field public zhaNum:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 18
    const v0, 0x3dcccccd

    sput v0, Lcom/philzhu/www/ddz/World;->tick:F

    .line 55
    new-instance v0, Ljava/util/Random;

    invoke-direct {v0}, Ljava/util/Random;-><init>()V

    sput-object v0, Lcom/philzhu/www/ddz/World;->RNG:Ljava/util/Random;

    .line 6
    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x0

    .line 57
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 17
    iput v1, p0, Lcom/philzhu/www/ddz/World;->tickTime:F

    .line 20
    iput v1, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    .line 22
    iput v0, p0, Lcom/philzhu/www/ddz/World;->grade:I

    .line 23
    iput v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    .line 24
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isSettingDizhu:Z

    .line 26
    iput v0, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    .line 28
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->noOneCalls:Z

    .line 30
    iput v0, p0, Lcom/philzhu/www/ddz/World;->zhaNum:I

    .line 31
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->spring:Z

    .line 32
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->antiSpring:Z

    .line 34
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->pickedNoCard:Z

    .line 35
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->pickedTheWrongCards:Z

    .line 36
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->noBiggerCard:Z

    .line 37
    iput v0, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    .line 39
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    .line 40
    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    .line 41
    iput v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    .line 47
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->bottomCards:Ljava/util/Vector;

    .line 48
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->allCards:Ljava/util/Vector;

    .line 50
    new-instance v0, Lcom/philzhu/www/ddz/TipsInfo;

    invoke-direct {v0}, Lcom/philzhu/www/ddz/TipsInfo;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->tipInfo:Lcom/philzhu/www/ddz/TipsInfo;

    .line 51
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    .line 53
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->firstOne:Z

    .line 58
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->initPlayer()V

    .line 59
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->initPokerGame()V

    .line 60
    return-void
.end method

.method private autoOutCards()Ljava/util/Vector;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;"
        }
    .end annotation

    .prologue
    .line 388
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getDownPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    .line 389
    .local v0, downPlayer:Lcom/philzhu/www/ddz/Player;
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getUpPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v3

    .line 390
    .local v3, upPlayer:Lcom/philzhu/www/ddz/Player;
    iget-object v4, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-boolean v4, v4, Lcom/philzhu/www/ddz/Player;->isDizhu:Z

    if-nez v4, :cond_1

    .line 394
    iget-boolean v4, v3, Lcom/philzhu/www/ddz/Player;->isDizhu:Z

    if-eqz v4, :cond_0

    .line 396
    move-object v2, v3

    .line 397
    .local v2, suppressPlayer:Lcom/philzhu/www/ddz/Player;
    move-object v1, v0

    .line 404
    .local v1, supportPlayer:Lcom/philzhu/www/ddz/Player;
    :goto_0
    iget-object v4, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-static {v4, v1, v2}, Lcom/philzhu/www/ddz/AI;->peasantsFightLandowner(Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;)Ljava/util/Vector;

    move-result-object v4

    .line 408
    .end local v1           #supportPlayer:Lcom/philzhu/www/ddz/Player;
    .end local v2           #suppressPlayer:Lcom/philzhu/www/ddz/Player;
    :goto_1
    return-object v4

    .line 401
    :cond_0
    move-object v2, v0

    .line 402
    .restart local v2       #suppressPlayer:Lcom/philzhu/www/ddz/Player;
    move-object v1, v3

    .restart local v1       #supportPlayer:Lcom/philzhu/www/ddz/Player;
    goto :goto_0

    .line 408
    .end local v1           #supportPlayer:Lcom/philzhu/www/ddz/Player;
    .end local v2           #suppressPlayer:Lcom/philzhu/www/ddz/Player;
    :cond_1
    iget-object v4, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-static {v4, v3, v0}, Lcom/philzhu/www/ddz/AI;->landownerSuppressPeasants(Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;)Ljava/util/Vector;

    move-result-object v4

    goto :goto_1
.end method

.method private callDizhu()V
    .locals 2

    .prologue
    .line 192
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-boolean v0, v0, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget-boolean v0, v0, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget-boolean v0, v0, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v0, :cond_3

    .line 194
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->grade:I

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget v1, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    if-le v0, v1, :cond_0

    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->grade:I

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget v1, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    if-le v0, v1, :cond_0

    .line 196
    const/4 v0, 0x1

    iput v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    .line 210
    :goto_0
    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->setDizhu(I)V

    .line 216
    :goto_1
    return-void

    .line 198
    :cond_0
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->grade:I

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget v1, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    if-le v0, v1, :cond_1

    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->grade:I

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget v1, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    if-le v0, v1, :cond_1

    .line 200
    const/4 v0, 0x2

    iput v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    goto :goto_0

    .line 202
    :cond_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->grade:I

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget v1, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    if-le v0, v1, :cond_2

    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->grade:I

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget v1, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    if-le v0, v1, :cond_2

    .line 204
    const/4 v0, 0x3

    iput v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    goto :goto_0

    .line 208
    :cond_2
    const/4 v0, 0x0

    iput v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    goto :goto_0

    .line 214
    :cond_3
    const/high16 v0, 0x3f80

    iput v0, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    goto :goto_1
.end method

.method private clearOldTips()V
    .locals 2

    .prologue
    .line 715
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->tipInfo:Lcom/philzhu/www/ddz/TipsInfo;

    const/4 v1, 0x0

    iput v1, v0, Lcom/philzhu/www/ddz/TipsInfo;->max:I

    .line 716
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->tipInfo:Lcom/philzhu/www/ddz/TipsInfo;

    iget-object v0, v0, Lcom/philzhu/www/ddz/TipsInfo;->oldTips:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->removeAllElements()V

    .line 717
    return-void
.end method

.method private clearOutCards()V
    .locals 2

    .prologue
    .line 529
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/philzhu/www/ddz/Player;->setOutCards(Ljava/util/Vector;)V

    .line 530
    return-void
.end method

.method private followOutCards()Ljava/util/Vector;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;"
        }
    .end annotation

    .prologue
    .line 355
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getDownPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v1

    .line 356
    .local v1, downPlayer:Lcom/philzhu/www/ddz/Player;
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getUpPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v3

    .line 357
    .local v3, upPlayer:Lcom/philzhu/www/ddz/Player;
    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v2

    .line 358
    .local v2, downPlayerOutCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v3}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v4

    .line 359
    .local v4, upPlayerOutCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    if-eqz v2, :cond_0

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v5

    if-nez v5, :cond_2

    :cond_0
    if-eqz v4, :cond_1

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v5

    if-nez v5, :cond_2

    .line 361
    :cond_1
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->autoOutCards()Ljava/util/Vector;

    move-result-object v5

    .line 381
    :goto_0
    return-object v5

    .line 366
    :cond_2
    if-eqz v4, :cond_3

    .line 368
    move-object v0, v4

    .line 375
    .local v0, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    :goto_1
    iget-object v5, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-boolean v5, v5, Lcom/philzhu/www/ddz/Player;->isDizhu:Z

    if-eqz v5, :cond_4

    .line 377
    iget-object v5, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-static {v0, v5, v3, v1}, Lcom/philzhu/www/ddz/AI;->landownerOutCards(Ljava/util/Vector;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;)Ljava/util/Vector;

    move-result-object v5

    goto :goto_0

    .line 372
    .end local v0           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    :cond_3
    move-object v0, v2

    .restart local v0       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    goto :goto_1

    .line 381
    :cond_4
    iget-object v5, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-static {v0, v5, v3, v1}, Lcom/philzhu/www/ddz/AI;->peasantOutCards(Ljava/util/Vector;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;)Ljava/util/Vector;

    move-result-object v5

    goto :goto_0
.end method

.method private getDownPlayer()Lcom/philzhu/www/ddz/Player;
    .locals 3

    .prologue
    .line 578
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v1

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    .line 580
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    .line 590
    .local v0, downPlayer:Lcom/philzhu/www/ddz/Player;
    :goto_0
    return-object v0

    .line 582
    .end local v0           #downPlayer:Lcom/philzhu/www/ddz/Player;
    :cond_0
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    .line 584
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    .restart local v0       #downPlayer:Lcom/philzhu/www/ddz/Player;
    goto :goto_0

    .line 588
    .end local v0           #downPlayer:Lcom/philzhu/www/ddz/Player;
    :cond_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    .restart local v0       #downPlayer:Lcom/philzhu/www/ddz/Player;
    goto :goto_0
.end method

.method private getDownPlayer(I)Lcom/philzhu/www/ddz/Player;
    .locals 1
    .parameter "index"

    .prologue
    .line 630
    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    .line 632
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    .line 642
    :goto_0
    return-object v0

    .line 634
    :cond_0
    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 636
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 638
    :cond_1
    const/4 v0, 0x1

    if-ne p1, v0, :cond_2

    .line 640
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 642
    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private getPickedCards()Ljava/util/Vector;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;"
        }
    .end annotation

    .prologue
    .line 534
    new-instance v3, Ljava/util/Vector;

    invoke-direct {v3}, Ljava/util/Vector;-><init>()V

    .line 535
    .local v3, temp:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    iget-object v4, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-object v4, v4, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v2

    .line 536
    .local v2, size:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-lt v1, v2, :cond_0

    .line 544
    return-object v3

    .line 538
    :cond_0
    iget-object v4, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-object v4, v4, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v4, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/philzhu/www/ddz/Card;

    .line 539
    .local v0, card:Lcom/philzhu/www/ddz/Card;
    iget-boolean v4, v0, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    if-eqz v4, :cond_1

    .line 541
    new-instance v4, Lcom/philzhu/www/ddz/Card;

    iget v5, v0, Lcom/philzhu/www/ddz/Card;->index:I

    iget v6, v0, Lcom/philzhu/www/ddz/Card;->suit:I

    invoke-direct {v4, v5, v6}, Lcom/philzhu/www/ddz/Card;-><init>(II)V

    invoke-virtual {v3, v4}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 536
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method private getPlayerByIndex(I)Lcom/philzhu/www/ddz/Player;
    .locals 1
    .parameter "index"

    .prologue
    .line 647
    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    .line 649
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    .line 659
    :goto_0
    return-object v0

    .line 651
    :cond_0
    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 653
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 655
    :cond_1
    const/4 v0, 0x1

    if-ne p1, v0, :cond_2

    .line 657
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 659
    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private getUpPlayer()Lcom/philzhu/www/ddz/Player;
    .locals 3

    .prologue
    .line 596
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v1

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    .line 598
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    .line 608
    .local v0, upPlayer:Lcom/philzhu/www/ddz/Player;
    :goto_0
    return-object v0

    .line 600
    .end local v0           #upPlayer:Lcom/philzhu/www/ddz/Player;
    :cond_0
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    .line 602
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    .restart local v0       #upPlayer:Lcom/philzhu/www/ddz/Player;
    goto :goto_0

    .line 606
    .end local v0           #upPlayer:Lcom/philzhu/www/ddz/Player;
    :cond_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    .restart local v0       #upPlayer:Lcom/philzhu/www/ddz/Player;
    goto :goto_0
.end method

.method private getUpPlayer(I)Lcom/philzhu/www/ddz/Player;
    .locals 1
    .parameter "index"

    .prologue
    .line 613
    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    .line 615
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    .line 625
    :goto_0
    return-object v0

    .line 617
    :cond_0
    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 619
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 621
    :cond_1
    const/4 v0, 0x1

    if-ne p1, v0, :cond_2

    .line 623
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 625
    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private initPlayer()V
    .locals 10

    .prologue
    .line 135
    invoke-static {}, Lcom/philzhu/www/ddz/AI;->createCards()Ljava/util/Vector;

    move-result-object v6

    iput-object v6, p0, Lcom/philzhu/www/ddz/World;->allCards:Ljava/util/Vector;

    .line 136
    iget-object v6, p0, Lcom/philzhu/www/ddz/World;->allCards:Ljava/util/Vector;

    invoke-static {v6}, Lcom/philzhu/www/ddz/Keeper;->init(Ljava/util/Vector;)V

    .line 137
    iget-object v6, p0, Lcom/philzhu/www/ddz/World;->allCards:Ljava/util/Vector;

    invoke-virtual {v6}, Ljava/util/Vector;->size()I

    move-result v1

    .line 138
    .local v1, cardsSize:I
    new-instance v4, Ljava/util/Vector;

    invoke-direct {v4}, Ljava/util/Vector;-><init>()V

    .line 139
    .local v4, playerMCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    new-instance v5, Ljava/util/Vector;

    invoke-direct {v5}, Ljava/util/Vector;-><init>()V

    .line 140
    .local v5, playerUCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    new-instance v3, Ljava/util/Vector;

    invoke-direct {v3}, Ljava/util/Vector;-><init>()V

    .line 141
    .local v3, playerDCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-lt v2, v1, :cond_0

    .line 161
    invoke-static {v4}, Lcom/philzhu/www/ddz/AI;->sortByBigOrSmall(Ljava/util/Vector;)Ljava/util/Vector;

    move-result-object v4

    .line 162
    invoke-static {v5}, Lcom/philzhu/www/ddz/AI;->sortByBigOrSmall(Ljava/util/Vector;)Ljava/util/Vector;

    move-result-object v5

    .line 163
    invoke-static {v3}, Lcom/philzhu/www/ddz/AI;->sortByBigOrSmall(Ljava/util/Vector;)Ljava/util/Vector;

    move-result-object v3

    .line 164
    new-instance v6, Lcom/philzhu/www/ddz/Player;

    const/4 v7, 0x1

    invoke-direct {v6, v7, v4}, Lcom/philzhu/www/ddz/Player;-><init>(ILjava/util/Vector;)V

    iput-object v6, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    .line 165
    new-instance v6, Lcom/philzhu/www/ddz/Player;

    const/4 v7, 0x2

    invoke-direct {v6, v7, v5}, Lcom/philzhu/www/ddz/Player;-><init>(ILjava/util/Vector;)V

    iput-object v6, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    .line 166
    new-instance v6, Lcom/philzhu/www/ddz/Player;

    const/4 v7, 0x3

    invoke-direct {v6, v7, v3}, Lcom/philzhu/www/ddz/Player;-><init>(ILjava/util/Vector;)V

    iput-object v6, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    .line 167
    return-void

    .line 143
    :cond_0
    iget-object v6, p0, Lcom/philzhu/www/ddz/World;->allCards:Ljava/util/Vector;

    invoke-virtual {v6, v2}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/philzhu/www/ddz/Card;

    .line 144
    .local v0, c:Lcom/philzhu/www/ddz/Card;
    const/16 v6, 0x11

    if-ge v2, v6, :cond_1

    .line 146
    new-instance v6, Lcom/philzhu/www/ddz/Card;

    iget v7, v0, Lcom/philzhu/www/ddz/Card;->index:I

    iget v8, v0, Lcom/philzhu/www/ddz/Card;->suit:I

    invoke-direct {v6, v7, v8}, Lcom/philzhu/www/ddz/Card;-><init>(II)V

    invoke-virtual {v4, v6}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 141
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 148
    :cond_1
    const/16 v6, 0x22

    if-ge v2, v6, :cond_2

    .line 150
    new-instance v6, Lcom/philzhu/www/ddz/Card;

    iget v7, v0, Lcom/philzhu/www/ddz/Card;->index:I

    iget v8, v0, Lcom/philzhu/www/ddz/Card;->suit:I

    invoke-direct {v6, v7, v8}, Lcom/philzhu/www/ddz/Card;-><init>(II)V

    invoke-virtual {v5, v6}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 152
    :cond_2
    const/16 v6, 0x33

    if-ge v2, v6, :cond_3

    .line 154
    new-instance v6, Lcom/philzhu/www/ddz/Card;

    iget v7, v0, Lcom/philzhu/www/ddz/Card;->index:I

    iget v8, v0, Lcom/philzhu/www/ddz/Card;->suit:I

    invoke-direct {v6, v7, v8}, Lcom/philzhu/www/ddz/Card;-><init>(II)V

    invoke-virtual {v3, v6}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 158
    :cond_3
    iget-object v6, p0, Lcom/philzhu/www/ddz/World;->bottomCards:Ljava/util/Vector;

    new-instance v7, Lcom/philzhu/www/ddz/Card;

    iget v8, v0, Lcom/philzhu/www/ddz/Card;->index:I

    iget v9, v0, Lcom/philzhu/www/ddz/Card;->suit:I

    invoke-direct {v7, v8, v9}, Lcom/philzhu/www/ddz/Card;-><init>(II)V

    invoke-virtual {v6, v7}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    goto :goto_1
.end method

.method private initPokerGame()V
    .locals 3

    .prologue
    const/4 v2, 0x3

    .line 171
    sget-object v1, Lcom/philzhu/www/ddz/World;->RNG:Ljava/util/Random;

    invoke-virtual {v1, v2}, Ljava/util/Random;->nextInt(I)I

    move-result v1

    add-int/lit8 v0, v1, 0x1

    .line 172
    .local v0, r:I
    if-ne v0, v2, :cond_0

    .line 174
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iput-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    .line 185
    :goto_0
    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Call:Lcom/philzhu/www/ddz/World$Status;

    invoke-direct {p0, v1}, Lcom/philzhu/www/ddz/World;->setStatus(Lcom/philzhu/www/ddz/World$Status;)V

    .line 187
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->callDizhu()V

    .line 188
    return-void

    .line 176
    :cond_0
    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 178
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iput-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    goto :goto_0

    .line 182
    :cond_1
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iput-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    goto :goto_0
.end method

.method private nextOutCards()V
    .locals 2

    .prologue
    .line 344
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->clearOutCards()V

    .line 345
    iget v0, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 347
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/philzhu/www/ddz/World;->firstOne:Z

    .line 348
    const/4 v0, 0x0

    iput v0, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    .line 350
    :cond_0
    const/high16 v0, 0x3f80

    iput v0, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    .line 351
    return-void
.end method

.method private nextPlayer()V
    .locals 2

    .prologue
    .line 693
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->GameOver:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_0

    .line 711
    :goto_0
    return-void

    .line 697
    :cond_0
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v0

    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    .line 699
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    .line 709
    :goto_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/philzhu/www/ddz/Player;->isOutCarding:Z

    .line 710
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->clearOldTips()V

    goto :goto_0

    .line 701
    :cond_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 703
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    goto :goto_1

    .line 707
    :cond_2
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    goto :goto_1
.end method

.method private outCards(Ljava/util/Vector;)V
    .locals 7
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    const/4 v6, 0x6

    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 420
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v2

    if-nez v2, :cond_2

    .line 422
    :cond_0
    iget v2, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    .line 423
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->playPassSound()V

    .line 522
    :cond_1
    :goto_0
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iput-boolean v5, v2, Lcom/philzhu/www/ddz/Player;->isOutCarding:Z

    .line 523
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->nextPlayer()V

    .line 524
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->nextOutCards()V

    .line 525
    :goto_1
    return-void

    .line 427
    :cond_2
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v2, p1}, Lcom/philzhu/www/ddz/Player;->outCards(Ljava/util/Vector;)Z

    move-result v2

    if-eqz v2, :cond_13

    .line 429
    iget-boolean v2, p0, Lcom/philzhu/www/ddz/World;->firstOne:Z

    if-eqz v2, :cond_3

    .line 431
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getUpPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v2

    iput-boolean v4, v2, Lcom/philzhu/www/ddz/Player;->isOutCarding:Z

    .line 432
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getDownPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v2

    iput-boolean v4, v2, Lcom/philzhu/www/ddz/Player;->isOutCarding:Z

    .line 434
    :cond_3
    iput v4, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    .line 435
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget v3, v2, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    add-int/lit8 v3, v3, 0x1

    iput v3, v2, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    .line 436
    invoke-static {p1}, Lcom/philzhu/www/ddz/AI;->getType(Ljava/util/Vector;)I

    move-result v0

    .line 437
    .local v0, outCardsType:I
    const/16 v2, 0xe

    if-ne v0, v2, :cond_5

    .line 439
    iget v2, p0, Lcom/philzhu/www/ddz/World;->zhaNum:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/philzhu/www/ddz/World;->zhaNum:I

    .line 440
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->boom:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 441
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->huo:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 506
    :cond_4
    :goto_2
    iput-boolean v4, p0, Lcom/philzhu/www/ddz/World;->firstOne:Z

    .line 508
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    if-nez v2, :cond_1

    .line 510
    sget-object v2, Lcom/philzhu/www/ddz/World$Status;->GameOver:Lcom/philzhu/www/ddz/World$Status;

    invoke-direct {p0, v2}, Lcom/philzhu/www/ddz/World;->setStatus(Lcom/philzhu/www/ddz/World$Status;)V

    goto :goto_1

    .line 443
    :cond_5
    const/16 v2, 0xd

    if-ne v0, v2, :cond_6

    .line 445
    iget v2, p0, Lcom/philzhu/www/ddz/World;->zhaNum:I

    add-int/lit8 v2, v2, 0x1

    iput v2, p0, Lcom/philzhu/www/ddz/World;->zhaNum:I

    .line 446
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->boom:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 447
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->zha:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 449
    :cond_6
    iget-boolean v2, p0, Lcom/philzhu/www/ddz/World;->firstOne:Z

    if-eqz v2, :cond_10

    .line 451
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->outCard:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 452
    const/16 v2, 0x8

    if-ne v0, v2, :cond_7

    .line 454
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->shun:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 456
    :cond_7
    const/16 v2, 0x9

    if-ne v0, v2, :cond_8

    .line 458
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->shun2:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 460
    :cond_8
    const/16 v2, 0xa

    if-eq v0, v2, :cond_9

    const/16 v2, 0xb

    if-eq v0, v2, :cond_9

    const/16 v2, 0xc

    if-ne v0, v2, :cond_a

    .line 462
    :cond_9
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->feiji:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 464
    :cond_a
    const/4 v2, 0x4

    if-ne v0, v2, :cond_b

    .line 466
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->sanWithDan:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 468
    :cond_b
    const/4 v2, 0x5

    if-ne v0, v2, :cond_c

    .line 470
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->sanWithDui:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 472
    :cond_c
    if-ne v0, v6, :cond_d

    .line 474
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->sizWithTwoDan:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 476
    :cond_d
    if-ne v0, v6, :cond_e

    .line 478
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->sizWithTwoDui:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_2

    .line 480
    :cond_e
    if-ne v0, v5, :cond_f

    invoke-virtual {p1, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/ddz/Card;

    iget v2, v2, Lcom/philzhu/www/ddz/Card;->num:I

    const/16 v3, 0x11

    if-ne v2, v3, :cond_f

    .line 482
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->sbJoker:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_2

    .line 484
    :cond_f
    if-ne v0, v5, :cond_4

    invoke-virtual {p1, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/ddz/Card;

    iget v2, v2, Lcom/philzhu/www/ddz/Card;->num:I

    const/16 v3, 0x10

    if-ne v2, v3, :cond_4

    .line 486
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->ssJoker:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_2

    .line 489
    :cond_10
    iget-boolean v2, p0, Lcom/philzhu/www/ddz/World;->firstOne:Z

    if-nez v2, :cond_4

    .line 491
    sget-object v2, Lcom/philzhu/www/ddz/World;->RNG:Ljava/util/Random;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Ljava/util/Random;->nextInt(I)I

    move-result v2

    add-int/lit8 v1, v2, 0x1

    .line 492
    .local v1, r:I
    if-ne v1, v5, :cond_11

    .line 494
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->da1:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_2

    .line 496
    :cond_11
    const/4 v2, 0x2

    if-ne v1, v2, :cond_12

    .line 498
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->da2:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_2

    .line 502
    :cond_12
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->da3:Lcom/philzhu/www/framework/Sound;

    invoke-static {v2}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_2

    .line 516
    .end local v0           #outCardsType:I
    .end local v1           #r:I
    :cond_13
    iput-boolean v5, p0, Lcom/philzhu/www/ddz/World;->pickedTheWrongCards:Z

    .line 517
    iput-boolean v4, p0, Lcom/philzhu/www/ddz/World;->noBiggerCard:Z

    .line 518
    const/16 v2, 0xff

    iput v2, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    goto/16 :goto_0
.end method

.method private outCardsTheFirstOne()V
    .locals 1

    .prologue
    .line 414
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->followOutCards()Ljava/util/Vector;

    move-result-object v0

    .line 415
    .local v0, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->outCards(Ljava/util/Vector;)V

    .line 416
    return-void
.end method

.method private pickTheTipCards(Ljava/util/Vector;Ljava/util/Vector;)V
    .locals 8
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;",
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/ddz/Card;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 549
    .local p1, playersCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .local p2, tipCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {p1}, Ljava/util/Vector;->size()I

    move-result v3

    .line 550
    .local v3, playersCardsSize:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v3, :cond_0

    .line 563
    return-void

    .line 552
    :cond_0
    invoke-virtual {p1, v0}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/ddz/Card;

    .line 553
    .local v2, playersCard:Lcom/philzhu/www/ddz/Card;
    invoke-virtual {p2}, Ljava/util/Vector;->size()I

    move-result v5

    .line 554
    .local v5, tipCardsSize:I
    const/4 v1, 0x0

    .local v1, j:I
    :goto_1
    if-lt v1, v5, :cond_1

    .line 550
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 556
    :cond_1
    invoke-virtual {p2, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/philzhu/www/ddz/Card;

    .line 557
    .local v4, tipCard:Lcom/philzhu/www/ddz/Card;
    iget v6, v4, Lcom/philzhu/www/ddz/Card;->num:I

    iget v7, v2, Lcom/philzhu/www/ddz/Card;->num:I

    if-ne v6, v7, :cond_2

    iget v6, v4, Lcom/philzhu/www/ddz/Card;->suit:I

    iget v7, v2, Lcom/philzhu/www/ddz/Card;->suit:I

    if-ne v6, v7, :cond_2

    .line 559
    const/4 v6, 0x1

    iput-boolean v6, v2, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    .line 554
    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method

.method private playPassSound()V
    .locals 3

    .prologue
    .line 757
    sget-object v1, Lcom/philzhu/www/ddz/World;->RNG:Ljava/util/Random;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Ljava/util/Random;->nextInt(I)I

    move-result v1

    add-int/lit8 v0, v1, 0x1

    .line 758
    .local v0, r:I
    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 760
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->pass1:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 770
    :goto_0
    return-void

    .line 762
    :cond_0
    const/4 v1, 0x2

    if-ne v0, v1, :cond_1

    .line 764
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->pass2:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_0

    .line 768
    :cond_1
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->pass3:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_0
.end method

.method private setCalling(I)V
    .locals 2
    .parameter "index"

    .prologue
    .line 664
    invoke-direct {p0, p1}, Lcom/philzhu/www/ddz/World;->getPlayerByIndex(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    .line 665
    .local v0, player:Lcom/philzhu/www/ddz/Player;
    if-eqz v0, :cond_0

    .line 667
    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    .line 669
    :cond_0
    return-void
.end method

.method private setDizhu(I)V
    .locals 3
    .parameter "index"

    .prologue
    const/4 v2, 0x1

    .line 673
    if-nez p1, :cond_1

    .line 675
    iput-boolean v2, p0, Lcom/philzhu/www/ddz/World;->noOneCalls:Z

    .line 689
    :cond_0
    :goto_0
    return-void

    .line 678
    :cond_1
    iput p1, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    .line 679
    invoke-direct {p0, p1}, Lcom/philzhu/www/ddz/World;->getPlayerByIndex(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    .line 680
    .local v0, player:Lcom/philzhu/www/ddz/Player;
    if-eqz v0, :cond_0

    .line 685
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->bottomCards:Ljava/util/Vector;

    invoke-virtual {v0, v1}, Lcom/philzhu/www/ddz/Player;->setDizhu(Ljava/util/Vector;)V

    .line 686
    iput-boolean v2, p0, Lcom/philzhu/www/ddz/World;->isSettingDizhu:Z

    .line 687
    iput-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    .line 688
    const/high16 v1, 0x3f80

    iput v1, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    goto :goto_0
.end method

.method private setOldTipsNoFollowedCards()V
    .locals 4

    .prologue
    .line 567
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v1

    .line 568
    .local v1, size:I
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->removeAllElements()V

    .line 569
    const/4 v2, 0x1

    sub-int v0, v1, v2

    .local v0, i:I
    :goto_0
    if-gez v0, :cond_0

    .line 573
    return-void

    .line 571
    :cond_0
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 569
    add-int/lit8 v0, v0, -0x1

    goto :goto_0
.end method

.method private setStatus(Lcom/philzhu/www/ddz/World$Status;)V
    .locals 2
    .parameter "status"

    .prologue
    const/4 v1, 0x1

    .line 726
    iput-object p1, p0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    .line 727
    sget-object v0, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    if-ne p1, v0, :cond_2

    .line 729
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cardsInfo:Lcom/philzhu/www/ddz/PlayersCardsInfo;

    if-nez v0, :cond_0

    .line 731
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/Player;->makeCards()V

    .line 733
    :cond_0
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cardsInfo:Lcom/philzhu/www/ddz/PlayersCardsInfo;

    if-nez v0, :cond_1

    .line 735
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/Player;->makeCards()V

    .line 737
    :cond_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cardsInfo:Lcom/philzhu/www/ddz/PlayersCardsInfo;

    if-nez v0, :cond_2

    .line 739
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/Player;->makeCards()V

    .line 742
    :cond_2
    sget-object v0, Lcom/philzhu/www/ddz/World$Status;->GameOver:Lcom/philzhu/www/ddz/World$Status;

    if-ne p1, v0, :cond_3

    .line 744
    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->getPlayerByIndex(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    if-ne v0, v1, :cond_4

    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->getUpPlayer(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    if-nez v0, :cond_4

    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->getDownPlayer(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    if-nez v0, :cond_4

    .line 746
    iput-boolean v1, p0, Lcom/philzhu/www/ddz/World;->spring:Z

    .line 753
    :cond_3
    :goto_0
    return-void

    .line 748
    :cond_4
    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->getPlayerByIndex(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    if-ne v0, v1, :cond_3

    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->getUpPlayer(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    if-nez v0, :cond_5

    iget v0, p0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->getDownPlayer(I)Lcom/philzhu/www/ddz/Player;

    move-result-object v0

    iget v0, v0, Lcom/philzhu/www/ddz/Player;->outCardsTimes:I

    if-eqz v0, :cond_3

    .line 750
    :cond_5
    iput-boolean v1, p0, Lcom/philzhu/www/ddz/World;->antiSpring:Z

    goto :goto_0
.end method


# virtual methods
.method public call(I)V
    .locals 4
    .parameter "grade"

    .prologue
    const/4 v3, 0x3

    .line 220
    const/4 v1, -0x1

    if-ne p1, v1, :cond_1

    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-object v1, v1, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-static {v1}, Lcom/philzhu/www/ddz/AI;->getCardsPn(Ljava/util/Vector;)I

    move-result v1

    move v0, v1

    .line 222
    .local v0, g:I
    :goto_0
    if-eqz v0, :cond_4

    iget v1, p0, Lcom/philzhu/www/ddz/World;->grade:I

    if-le v0, v1, :cond_4

    .line 224
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iput v0, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    .line 225
    iput v0, p0, Lcom/philzhu/www/ddz/World;->grade:I

    .line 226
    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    .line 228
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->one:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 244
    :cond_0
    :goto_1
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v1

    invoke-direct {p0, v1}, Lcom/philzhu/www/ddz/World;->setCalling(I)V

    .line 245
    if-eq v0, v3, :cond_5

    .line 247
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->nextPlayer()V

    .line 248
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->callDizhu()V

    .line 254
    :goto_2
    return-void

    .end local v0           #g:I
    :cond_1
    move v0, p1

    .line 220
    goto :goto_0

    .line 230
    .restart local v0       #g:I
    :cond_2
    const/4 v1, 0x2

    if-ne v0, v1, :cond_3

    .line 232
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->two:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_1

    .line 234
    :cond_3
    if-ne v0, v3, :cond_0

    .line 236
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->three:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_1

    .line 241
    :cond_4
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    const/4 v2, 0x0

    iput v2, v1, Lcom/philzhu/www/ddz/Player;->grade:I

    .line 242
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->fold:Lcom/philzhu/www/framework/Sound;

    invoke-static {v1}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto :goto_1

    .line 252
    :cond_5
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v1

    invoke-direct {p0, v1}, Lcom/philzhu/www/ddz/World;->setDizhu(I)V

    goto :goto_2
.end method

.method public currentPlayerNotAI()Z
    .locals 2

    .prologue
    const/4 v1, 0x1

    .line 721
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v0

    if-ne v0, v1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getTips()V
    .locals 11

    .prologue
    const/4 v10, 0x1

    const/4 v9, 0x0

    .line 276
    invoke-virtual {p0}, Lcom/philzhu/www/ddz/World;->reChoose()V

    .line 278
    iget-object v1, p0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    .line 279
    .local v1, downPlayer:Lcom/philzhu/www/ddz/Player;
    iget-object v5, p0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    .line 280
    .local v5, upPlayer:Lcom/philzhu/www/ddz/Player;
    iget-object v3, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    .line 281
    .local v3, myPlayer:Lcom/philzhu/www/ddz/Player;
    invoke-virtual {v1}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v2

    .line 282
    .local v2, downPlayerOutCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v5}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v6

    .line 283
    .local v6, upPlayerOutCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    if-eqz v2, :cond_0

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v7

    if-nez v7, :cond_4

    :cond_0
    if-eqz v6, :cond_1

    invoke-virtual {v6}, Ljava/util/Vector;->size()I

    move-result v7

    if-nez v7, :cond_4

    .line 285
    :cond_1
    iget-object v7, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    if-eqz v7, :cond_2

    iget-object v7, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    invoke-virtual {v7}, Ljava/util/Vector;->size()I

    move-result v7

    if-nez v7, :cond_3

    .line 287
    :cond_2
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->setOldTipsNoFollowedCards()V

    .line 289
    :cond_3
    iget-object v7, p0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v8, v7, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    iget-object v7, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    invoke-virtual {v7, v9}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/Integer;

    invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I

    move-result v7

    invoke-virtual {v8, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/philzhu/www/ddz/Card;

    iput-boolean v10, v7, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    .line 290
    iget-object v7, p0, Lcom/philzhu/www/ddz/World;->oldTipsNoFollowedCards:Ljava/util/Vector;

    invoke-virtual {v7, v9}, Ljava/util/Vector;->removeElementAt(I)V

    .line 317
    :goto_0
    return-void

    .line 295
    :cond_4
    if-eqz v6, :cond_5

    .line 297
    move-object v0, v6

    .line 303
    .local v0, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    :goto_1
    iget-object v7, p0, Lcom/philzhu/www/ddz/World;->tipInfo:Lcom/philzhu/www/ddz/TipsInfo;

    invoke-static {v0, v3, v5, v1, v7}, Lcom/philzhu/www/ddz/AI;->getTips(Ljava/util/Vector;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/TipsInfo;)Ljava/util/Vector;

    move-result-object v4

    .line 305
    .local v4, tipsCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    if-eqz v4, :cond_6

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v7

    if-eqz v7, :cond_6

    .line 307
    iget-object v7, v3, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-direct {p0, v7, v4}, Lcom/philzhu/www/ddz/World;->pickTheTipCards(Ljava/util/Vector;Ljava/util/Vector;)V

    goto :goto_0

    .line 301
    .end local v0           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .end local v4           #tipsCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    :cond_5
    move-object v0, v2

    .restart local v0       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    goto :goto_1

    .line 311
    .restart local v4       #tipsCards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    :cond_6
    iput-boolean v10, p0, Lcom/philzhu/www/ddz/World;->noBiggerCard:Z

    .line 312
    iput-boolean v9, p0, Lcom/philzhu/www/ddz/World;->pickedTheWrongCards:Z

    .line 313
    const/16 v7, 0xff

    iput v7, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    .line 314
    invoke-virtual {p0}, Lcom/philzhu/www/ddz/World;->pass()V

    goto :goto_0
.end method

.method public pass()V
    .locals 1

    .prologue
    .line 258
    invoke-virtual {p0}, Lcom/philzhu/www/ddz/World;->reChoose()V

    .line 259
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->playPassSound()V

    .line 260
    iget v0, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/philzhu/www/ddz/World;->foldPlayersCount:I

    .line 261
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->nextPlayer()V

    .line 262
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->nextOutCards()V

    .line 263
    return-void
.end method

.method public putOutCards()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    .line 321
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getPickedCards()Ljava/util/Vector;

    move-result-object v0

    .line 322
    .local v0, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v3

    if-nez v3, :cond_0

    .line 324
    iput-boolean v4, p0, Lcom/philzhu/www/ddz/World;->pickedNoCard:Z

    .line 340
    :goto_0
    return-void

    .line 327
    :cond_0
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getUpPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v2

    .line 328
    .local v2, upPlayer:Lcom/philzhu/www/ddz/Player;
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->getDownPlayer()Lcom/philzhu/www/ddz/Player;

    move-result-object v1

    .line 329
    .local v1, downPlayer:Lcom/philzhu/www/ddz/Player;
    iget-object v3, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-static {v3, v2, v1, v0}, Lcom/philzhu/www/ddz/AI;->checkCanOutCards(Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Lcom/philzhu/www/ddz/Player;Ljava/util/Vector;)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-nez v3, :cond_1

    .line 331
    iput-boolean v4, p0, Lcom/philzhu/www/ddz/World;->pickedTheWrongCards:Z

    .line 332
    const/4 v3, 0x0

    iput-boolean v3, p0, Lcom/philzhu/www/ddz/World;->noBiggerCard:Z

    .line 333
    const/16 v3, 0xff

    iput v3, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    goto :goto_0

    .line 337
    :cond_1
    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->outCards(Ljava/util/Vector;)V

    .line 338
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->setOldTipsNoFollowedCards()V

    goto :goto_0
.end method

.method public reChoose()V
    .locals 4

    .prologue
    .line 267
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v1

    .line 268
    .local v1, size:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v1, :cond_0

    .line 272
    return-void

    .line 270
    :cond_0
    iget-object v2, p0, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2, v0}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/ddz/Card;

    const/4 v3, 0x0

    iput-boolean v3, v2, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    .line 268
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public update(F)V
    .locals 6
    .parameter "deltaTime"

    .prologue
    const/high16 v5, 0x43c8

    const/4 v2, 0x0

    const/16 v4, 0x3f

    const/4 v3, 0x0

    .line 63
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->GameOver:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_1

    .line 131
    :cond_0
    :goto_0
    return-void

    .line 66
    :cond_1
    iget v0, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    cmpl-float v0, v0, v2

    if-lez v0, :cond_2

    .line 68
    iget v0, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    sub-float/2addr v0, p1

    iput v0, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    .line 69
    iget v0, p0, Lcom/philzhu/www/ddz/World;->nextPlayerDelay:F

    cmpg-float v0, v0, v2

    if-gtz v0, :cond_2

    .line 71
    invoke-virtual {p0}, Lcom/philzhu/www/ddz/World;->currentPlayerNotAI()Z

    move-result v0

    if-nez v0, :cond_5

    .line 73
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Call:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_4

    .line 75
    iget-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isSettingDizhu:Z

    if-eqz v0, :cond_3

    .line 77
    sget-object v0, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->setStatus(Lcom/philzhu/www/ddz/World$Status;)V

    .line 78
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->outCardsTheFirstOne()V

    .line 103
    :cond_2
    :goto_1
    iget v0, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    if-lez v0, :cond_6

    .line 105
    iget v0, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    const/high16 v1, 0x4380

    mul-float/2addr v1, p1

    const/high16 v2, 0x4000

    div-float/2addr v1, v2

    float-to-int v1, v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/philzhu/www/ddz/World;->alpha:I

    .line 113
    :goto_2
    iget-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    if-eqz v0, :cond_7

    iget v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    sget-object v1, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v1

    sub-int/2addr v1, v4

    if-ge v0, v1, :cond_7

    .line 115
    iget v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    mul-float v1, v5, p1

    float-to-int v1, v1

    add-int/2addr v0, v1

    iput v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    .line 116
    iget v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    sget-object v1, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v1

    sub-int/2addr v1, v4

    if-le v0, v1, :cond_0

    .line 118
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v0

    sub-int/2addr v0, v4

    iput v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    goto :goto_0

    .line 82
    :cond_3
    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/philzhu/www/ddz/World;->call(I)V

    goto :goto_1

    .line 85
    :cond_4
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_2

    .line 87
    invoke-direct {p0}, Lcom/philzhu/www/ddz/World;->outCardsTheFirstOne()V

    goto :goto_1

    .line 92
    :cond_5
    iget-object v0, p0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Call:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_2

    .line 94
    iget-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isSettingDizhu:Z

    if-eqz v0, :cond_2

    .line 96
    sget-object v0, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/World;->setStatus(Lcom/philzhu/www/ddz/World$Status;)V

    goto :goto_1

    .line 109
    :cond_6
    iput-boolean v3, p0, Lcom/philzhu/www/ddz/World;->noBiggerCard:Z

    .line 110
    iput-boolean v3, p0, Lcom/philzhu/www/ddz/World;->pickedTheWrongCards:Z

    goto :goto_2

    .line 121
    :cond_7
    iget-boolean v0, p0, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    if-lez v0, :cond_0

    .line 123
    iget v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    mul-float v1, v5, p1

    float-to-int v1, v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    .line 124
    iget v0, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    if-gtz v0, :cond_0

    .line 126
    iput v3, p0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    .line 127
    iput-boolean v3, p0, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    .line 128
    iput-boolean v3, p0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    goto/16 :goto_0
.end method
